import { createApp } from 'vue'
import 'normalize.css'
import './style.css'
import App from './App.vue'
import router from './router'
import {createPinia} from 'pinia' //1. 引入pinia
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate' // 引入pinia插件
const pinia = createPinia()  //2. 创建pinia
pinia.use(piniaPluginPersistedstate)
// createApp(App).use(router).mount('#app')
// 拆分写法
let app = createApp(App) //渲染根组件
app.use(router) //注入路由
app.use(pinia) //3. 注入状态机
app.mount('#app')
